package com.car.loan.project.xr.mapper;

import com.car.loan.project.xr.domain.LoanCar;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.car.loan.project.xr.domain.LoanStatus;
import java.util.Optional;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * 车辆信息Mapper接口
 *
 * @author ruoyi
 * @date 2019-11-03
 */
@Repository
public interface LoanCarMapper extends BaseMapper<LoanCar> {

    @Select("select * from xr_loan_car where loan_id =#{loanId}")
    Optional<LoanCar> selectByLoanId(@Param("loanId") long loanId);
}
